package myThread;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class demo28 {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> queue = new LinkedBlockingDeque<>();
//      入队列
//      queue.put("abc");
//      System.out.println("执行入队列操作");

        //出队列
        String tmp = queue.take();
        System.out.println("执行出队列操作");
    }
}
